package controller;



import model.ManualCodeCorpTestModel;

import org.eclipse.swt.events.KeyListener;
import org.eclipse.swt.widgets.Listener;


import controller.listeners.manualCodeCorpTest.CorpCodeKeyDownListener;
import controller.listeners.manualCodeCorpTest.CorpCodeSelectionListener;
import controller.listeners.manualCodeCorpTest.CorpTestTxtKeyDownListener;


import view.ManualCodeCorpTestView;


public class ManualCodeCorpTestController {

	private ManualCodeCorpTestView _view;
	private ManualCodeCorpTestModel _model;
	
	public ManualCodeCorpTestController(ManualCodeCorpTestView view) {
		_view = view;
		_model = new ManualCodeCorpTestModel();
		
	}

	public void iniView() {
		_model.setCorpTest(_view.getCorpTestText());
		
	}

	public KeyListener getCorpTestTxtKeyDownListener() {
		return new CorpTestTxtKeyDownListener(_view, _model);
	}

	public Listener getCorpCodeSelectionListener() {
		
		return new CorpCodeSelectionListener(_view, _model);
	}

	public Listener getCorpCodeKeyDownListener() {
		return new CorpCodeKeyDownListener(_view, _model);
	}



	

}
